1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"824.41">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Helvetica
; min-height: 11.0px}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco
; min-height: 16.0px}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #000000}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #000000; min-height: 12.0px}
17 span
.s1
{font: 18.0px Helvetica
}
18 span
.s2
{color: #0000bf}
19 span
.Apple-tab-span
{white-space:pre
}
23 <p class=
"p1"><span class=
"s1"><b>T2K
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b>audio rate trigger to control rate trigger converter
</b></p>
24 <p class=
"p2"><br></p>
25 <p class=
"p2"><br></p>
26 <p class=
"p1"><b>T2K.kr(in)
</b></p>
27 <p class=
"p2"><br></p>
28 <p class=
"p2"><br></p>
29 <p class=
"p2"><br></p>
30 <p class=
"p1">Converts audio rate trigger into control rate trigger,
<span class=
"Apple-converted-space"> </span></p>
31 <p class=
"p1">using the maxiumum trigger in the input during each control period.
</p>
32 <p class=
"p2"><br></p>
33 <p class=
"p1"><b>in
</b> - input signal
</p>
34 <p class=
"p3"><br></p>
35 <p class=
"p4"><br></p>
36 <p class=
"p5">// this does not work:
</p>
39 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s2">var
</span> trig =
<span class=
"s2">Dust
</span>.ar(
4);
</p>
40 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s2">Trig
</span>.kr(trig,
0.1) *
<span class=
"s2">SinOsc
</span>.ar(
800) *
0.1</p>
41 <p class=
"p6">}.play;
</p>
43 <p class=
"p7"><br></p>
44 <p class=
"p5">// this works:
</p>
47 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s2">var
</span> trig =
<span class=
"s2">T2K
</span>.kr(
<span class=
"s2">Dust
</span>.ar(
4));
</p>
48 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s2">Trig
</span>.kr(trig,
0.1) *
<span class=
"s2">SinOsc
</span>.ar(
800) *
0.1</p>
49 <p class=
"p6">}.play;
</p>